<%-- 
    Document   : Map
    Created on : May 23, 2008, 1:56:09 PM
    Author     : kristof
--%>

<%@ page import="POJO.*" %>
<%@ page import="DB.*" %>
<div id="GM">
<div  id="map_canvas" style="height: 600px;"></div></div>

<script type="text/javascript">
    function changeSize(id){
        if (document.getElementById(id) )
        {
            if( typeof( window.innerWidth ) == 'number' ) {
                var w = window.innerWidth - 250;
                var nodeObj = document.getElementById(id)
                nodeObj.style.width = w + 'px';
            }
            else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
                var w = document.documentElement.clientWidth - 250;
                var nodeObj = document.getElementById(id)
                nodeObj.style.width = w + 'px';
            }
            else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                var w =  document.body.clientWidth - 250;
                var nodeObj = document.getElementById(id)
                nodeObj.style.width = w + 'px';
            }
        }
    } 
    
    changeSize('map_canvas');
</script>

<%
            Maps map = new Maps();
            DB dbc = new DB(DBInfo.getConnection());
            out.print((map.Map((User) session.getAttribute("user"), dbc.conn)));
%>
